<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view>
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
		<head>
			<meta http-equiv="pragma" content="no-cache" />
			<meta http-equiv="cache-control" content="no-cache" />
			<meta http-equiv="expires" content="0" />
			<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
			<meta http-equiv="description" content="This is my page" />
			<link href="css/login.css" rel="stylesheet" type="text/css" />
			<title><h:outputText value="#{$bundle.page_title_home}" />
			</title>
		</head>
		<body>
			<div id="container">
				<div id="errorout">
					<div id="error">
						<h:messages />
					</div>
				</div>
				
				<%-- 登录  --%>
				<h:form>
					<div>
						用户名:
						<h:inputText styleClass="text" value="#{$.loginName}" required="true"></h:inputText>
					</div>
					<div>
						密　码:
						<h:inputSecret styleClass="text" value="#{$.password}" required="true"></h:inputSecret>
					</div>
					<div>
						<h:commandButton styleClass="button" value="#{$bundle.label_login_submit}" action="#{$.login}"></h:commandButton>
						<h:commandButton styleClass="button" value="#{$bundle.label_apply_register}" action="r:/user/applyRegister" immediate="true" />
					</div>
				</h:form>
			</div>
		</body>
	</html>
</f:view>
